package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 期权持仓信息
 */
@ApiModel(description = "期权持仓信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class OptionPositionBigDataStr   {
  @JsonProperty("code")
  private String code = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("marketValueTotal")
  private String marketValueTotal = null;

  @JsonProperty("type")
  private String type = null;

  @JsonProperty("direction")
  private String direction = null;

  @JsonProperty("hold")
  private String hold = null;

  @JsonProperty("cost")
  private String cost = null;

  @JsonProperty("profitLoss")
  private String profitLoss = null;

  public OptionPositionBigDataStr code(String code) {
    this.code = code;
    return this;
  }

  /**
   * 代码
   * @return code
  **/
  @ApiModelProperty(example = "4455454", value = "代码")


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public OptionPositionBigDataStr name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 股票名称
   * @return name
  **/
  @ApiModelProperty(example = "长城证券", value = "股票名称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public OptionPositionBigDataStr marketValueTotal(String marketValueTotal) {
    this.marketValueTotal = marketValueTotal;
    return this;
  }

  /**
   * 市值
   * @return marketValueTotal
  **/
  @ApiModelProperty(example = "1.05", value = "市值")


  public String getMarketValueTotal() {
    return marketValueTotal;
  }

  public void setMarketValueTotal(String marketValueTotal) {
    this.marketValueTotal = marketValueTotal;
  }

  public OptionPositionBigDataStr type(String type) {
    this.type = type;
    return this;
  }

  /**
   * 类型，认购，认沽
   * @return type
  **/
  @ApiModelProperty(example = "认购", value = "类型，认购，认沽")


  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public OptionPositionBigDataStr direction(String direction) {
    this.direction = direction;
    return this;
  }

  /**
   * 方向，权力方/义务方/备兑策略持仓
   * @return direction
  **/
  @ApiModelProperty(example = "权力方", value = "方向，权力方/义务方/备兑策略持仓")


  public String getDirection() {
    return direction;
  }

  public void setDirection(String direction) {
    this.direction = direction;
  }

  public OptionPositionBigDataStr hold(String hold) {
    this.hold = hold;
    return this;
  }

  /**
   * 数量
   * @return hold
  **/
  @ApiModelProperty(example = "2000", value = "数量")


  public String getHold() {
    return hold;
  }

  public void setHold(String hold) {
    this.hold = hold;
  }

  public OptionPositionBigDataStr cost(String cost) {
    this.cost = cost;
    return this;
  }

  /**
   * 成本
   * @return cost
  **/
  @ApiModelProperty(example = "10.05", value = "成本")


  public String getCost() {
    return cost;
  }

  public void setCost(String cost) {
    this.cost = cost;
  }

  public OptionPositionBigDataStr profitLoss(String profitLoss) {
    this.profitLoss = profitLoss;
    return this;
  }

  /**
   * 盈亏
   * @return profitLoss
  **/
  @ApiModelProperty(example = "11.05", value = "盈亏")


  public String getProfitLoss() {
    return profitLoss;
  }

  public void setProfitLoss(String profitLoss) {
    this.profitLoss = profitLoss;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OptionPositionBigDataStr optionPositionBigDataStr = (OptionPositionBigDataStr) o;
    return Objects.equals(this.code, optionPositionBigDataStr.code) &&
        Objects.equals(this.name, optionPositionBigDataStr.name) &&
        Objects.equals(this.marketValueTotal, optionPositionBigDataStr.marketValueTotal) &&
        Objects.equals(this.type, optionPositionBigDataStr.type) &&
        Objects.equals(this.direction, optionPositionBigDataStr.direction) &&
        Objects.equals(this.hold, optionPositionBigDataStr.hold) &&
        Objects.equals(this.cost, optionPositionBigDataStr.cost) &&
        Objects.equals(this.profitLoss, optionPositionBigDataStr.profitLoss);
  }

  @Override
  public int hashCode() {
    return Objects.hash(code, name, marketValueTotal, type, direction, hold, cost, profitLoss);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OptionPositionBigDataStr {\n");
    
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    marketValueTotal: ").append(toIndentedString(marketValueTotal)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    direction: ").append(toIndentedString(direction)).append("\n");
    sb.append("    hold: ").append(toIndentedString(hold)).append("\n");
    sb.append("    cost: ").append(toIndentedString(cost)).append("\n");
    sb.append("    profitLoss: ").append(toIndentedString(profitLoss)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

